<?php 
require_once('classTin.php');
$t = new tin;
$trongnuoc = $t->TinTrongNuoc($lang);
$row_trongnuoc = mysql_fetch_assoc($trongnuoc); 

$ngoainuoc = $t->TinNgoaiNuoc($lang);
$row_ngoainuoc = mysql_fetch_assoc($ngoainuoc); 

$thailan = $t->TinThaiLan($lang);
$row_thailan = mysql_fetch_assoc($thailan); 
?>
<style>
#TinNgoaiLe{
	height: 230px;
	width: 700px;
	overflow: hidden;
}
#TinTrongNuoc{
	height:100%;
	width: 226px;
	float: left;
	border-right-width: 1px;
	border-right-style: dotted;
	border-right-color: #24FF92;
}
#TrongNuocTop {
	height: 120px;
	width: 221px;
	margin-top: 2px;
	margin-right: 3px;
	margin-bottom: 2px;
	margin-left: 3px;
}
#TrongNuocTop #img_tn {
	height: 100%;
	width: 115px;
	float: left;
}
.img {
	height: 115px;
	width: 115px;
}
#TrongNuocTop #con_tn {
	float: left;
	height: 100%;
	width: 104px;
	margin-right: 1px;
	margin-left: 1px;
}
#TrongNuocSub {
	height: 82px;
	width: 227px;
	text-align: left;
}
.TieuDeTrongNuoc {
	text-transform: lowercase;
	background-image: url(image/bull_star.gif);
	background-position: left 5px;
	background-repeat: no-repeat;
	font-size: 14px;
	padding: 10px;
	text-align: left;
	margin-top: 0px;
}
.TieuDeTrongNuoc a {
	text-transform: lowercase;
	background-repeat: no-repeat;
	padding: 10px;
	color: #000000;
	text-decoration: none;
}
.TieuDeTrongNuoc  a:hover {
	text-transform: lowercase;
	background-repeat: no-repeat;
	padding: 10px;
	color: #37FF9B;
	text-decoration: underline;
}
.TieuDeTN a {
	color: #000000;
	text-decoration: none;
}
.TieuDeTN a:hover {
	color: #33FF99;
	text-decoration: underline;
}
</style>
<div id="TinNgoaiLe">
	<div id="TinTrongNuoc">
    	<div id="TrongNuocTop">
			<div id="img_tn"><img class="img" src="<?=$row_trongnuoc['urlHinh']?>" /></div>
          <div id="con_tn" class="TieuDeTN"><a href="home.php?p=details&idTin=<?=$row_trongnuoc['idTin']?>"><?=$row_trongnuoc['TieuDe']?></a></div>
        </div>
        <div id="TrongNuocSub">
        <?php while($row_trongnuoc2 = mysql_fetch_assoc($trongnuoc)) { ?>
       	  <span class="TieuDeTrongNuoc"><a href="home.php?p=details&idTin=<?=$row_trongnuoc2['idTin']?>"><?=$row_trongnuoc2['TieuDe']?></a></span><br/>  
        <?php } ?>
    	</div>
  </div><!--TIN TRONG NUOC-->
  
  <div id="TinTrongNuoc">
    	<div id="TrongNuocTop">
			<div id="img_tn"><img class="img" src="<?=$row_ngoainuoc['urlHinh']?>" /></div>
          <div id="con_tn" class="TieuDeTN"><a href="home.php?p=details&idTin=<?=$row_ngoainuoc['idTin']?>"><?=$row_ngoainuoc['TieuDe']?></a></div>
        </div>
        <div id="TrongNuocSub">
        <?php while($row_ngoainuoc2 = mysql_fetch_assoc($ngoainuoc)) { ?>
       	  <span class="TieuDeTrongNuoc"><a href="home.php?p=details&idTin=<?=$row_ngoainuoc2['idTin']?>"><?=$row_ngoainuoc2['TieuDe']?></a></span><br/>  
        <?php } ?>
    	</div>
  </div><!--TIN NGOAI NUOC-->
  
  <div id="TinTrongNuoc">
    	<div id="TrongNuocTop">
			<div id="img_tn"><img class="img" src="<?=$row_thailan['urlHinh']?>" /></div>
          <div id="con_tn" class="TieuDeTN"><a href="home.php?p=details&idTin=<?=$row_thailan['idTin']?>"><?=$row_thailan['TieuDe']?></a></div>
        </div>
        <div id="TrongNuocSub">
        <?php while($row_thailan2 = mysql_fetch_assoc($thailan)) { ?>
       	  <span class="TieuDeTrongNuoc"><a href="home.php?p=details&idTin=<?=$row_thailan2['idTin']?>"><?=$row_thailan2['TieuDe']?></a></span><br/>  
        <?php } ?>
    	</div>
  </div><!--TIN THAI LAN-->
</div>